import request from '@/utils/request'
export function addCoupon(data) {
  return request({
    url: '/coupon1/add',
    method: 'post',
    data
  })
}
export function coupons(query) {
  return request({
    url: '/coupon1/coupons',
    method: 'get',
    params: query
  })
}
export function editCoupon(data) {
  return request({
    url: '/coupon1/edit',
    method: 'post',
    data
  })
}
export function statusCoupon(data) {
  return request({
    url: '/coupon1/status',
    method: 'post',
    data
  })
}
export function removeCoupon(query) {
  return request({
    url: '/coupon1/remove',
    method: 'get',
    params: query
  })
}
export function optionCoupon() {
  return request({
    url: '/coupon1/option',
    method: 'get'
  })
}
